package design.p13_strategy;

/**
 * @ClassName: Java
 * @description:
 * @author: zxf
 * @create: 2021-06-19 09:52
 **/
public class Minus extends AbstractCalculator implements ICalculator{
    @Override
    public int calculator(String exp) {
        int[] array = super.spilt(exp,"-");
        return array[0]-array[1];
    }
}

